
//-----------------------------------------------------------------------------------------------------------------------------------------------------
function checkSearchParametersFromPersonalProfile(){

	searchQuery = document.forms['SearchForm'].Search.value;
	
	if(searchQuery == ""){
		alert("Please Type Query Data!");
		return false;
	}else{
		return true;
	}
}

//-----------------------------------------------------------------------------------------------------------------------------------------------------
function checkUploadPictureDataFromPersonalProfile(){

	picture = document.forms['UploadProfilePictureForm'].fileName.value;
	
	if(picture != ""){
		return true;		
	}else{
		alert("Please Choose Profile Picture!");
		return false;
	}
}

//-----------------------------------------------------------------------------------------------------------------------------------------------------
function checkParametersFromEditPersonalInformationPage(){

	name = document.forms['editPersonalInformationForm'].PersonalProfileName.value;
	surname = document.forms['editPersonalInformationForm'].PersonalProfileSurname.value;
	dateOfBirth = document.forms['editPersonalInformationForm'].PersonalProfileDateOfBirth.value;
	sex = document.forms['editPersonalInformationForm'].PersonalProfileSex.value;
	city = document.forms['editPersonalInformationForm'].PersonalProfileCity.value;
	education = document.forms['editPersonalInformationForm'].PersonalProfileEducation.value;
	employment = document.forms['editPersonalInformationForm'].PersonalProfileEmployment.value;
	webAdress = document.forms['editPersonalInformationForm'].PersonalProfileWebAdress.value;
	
	if(name == "" || surname == "" || dateOfBirth == "" || 
			sex == "" || city == "" || education == "" || employment == "" || webAdress == ""){
		alert("Please Type All Required Data!");
		return false;
	}else{
		return true;
	}
}

//-----------------------------------------------------------------------------------------------------------------------------------------------------
function checkParametersFromEditPasswordPage(){

	oldPassword = document.forms['editPasswordForm'].OldPassword.value;
	newPassword = document.forms['editPasswordForm'].NewPassword.value;
	confirmNewPassword = document.forms['editPasswordForm'].ConfirmNewPassword.value;
	
	if(oldPassword == "" || newPassword == "" || confirmNewPassword == ""){
		alert("Please Type All Required Data!");
		return false;
	}else{
		return true;
	}
}

//-----------------------------------------------------------------------------------------------------------------------------------------------------
function checkSearchParametersFromRegisteredUserHomePage(){

	searchQuery = document.forms['SearchForm'].Search.value;
	
	if(searchQuery == ""){
		alert("Please Type Query Data!");
		return false;
	}else{
		return true;
	}
}

//-----------------------------------------------------------------------------------------------------------------------------------------------------
function friendRequestSentMessage(){
	alert("Friend Request Sent!");
}




